package org.dromara.business.domain.bo;

import org.dromara.business.domain.ContentCollection;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 统一内容合集业务对象 t_content_collection
 *
 * @author Hao Tong Xue
 * @date 2025-04-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ContentCollection.class, reverseConvertGenerate = false)
public class ContentCollectionBo extends BaseEntity {

    /**
     * 合集ID
     */
    @NotNull(message = "合集ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 合集标题
     */
    @NotBlank(message = "合集标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 合集描述
     */
    private String description;

    /**
     * 合集封面URL
     */
    private String coverUrl;

    /**
     * 内容类型（1-视频，2-音频 3-图文）
     */
    @NotNull(message = "内容类型（1-视频，2-音频 3-图文）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer contentType;

    /**
     * 备注
     */
    private String remark;


}
